package com.dao.impl;

import org.springframework.stereotype.Repository;

import com.dao.AddressDao;
import com.entity.*;
@Repository
public class AddressDaoImpl extends BaseDaoImpl implements AddressDao{

	@Override
	public void saveAddress(ReceiveAddress address) {
		this.getSession().save(address);
		
	}

	@Override
	public ReceiveAddress getAddress(int id) {
		return (ReceiveAddress) getSession().get(ReceiveAddress.class,id);
	}
	
}
